<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gladiator</title>
</head>
<body>
	<h2 style="text-align: center">Edytuj newsy</h2>

	<c:forEach items="${newsList}" var="news">
		<div align=left>
			<b> 
				<font face=Verdana size=1 color=#954930>${news.subject} </font>
			</b>
			<a href="/gladiator-app/newsy/edit/${news.newsPk}"><font color=red>edytuj</font></a>
			<a href="/gladiator-app/newsy/delete/${news.newsPk}"><font color=red>usun</font></a>
		</div>
		<div align=right>
			<font face=Verdana size=1 color=#954930>${news.newsDate}</font>
		</div>
		<div align=justify>
			<font face=Verdana size=1 >${news.contents}</font>
	    </div>
	    <hr>
	</c:forEach>
</body>
</html>